package com.briup.cms.service;

import com.briup.cms.bean.BaseConfig;
import com.briup.cms.exception.CustomerException;
import com.github.pagehelper.PageInfo;

public interface IBaseConfigService {
    /**
     * 保存配置信息
     */
    void saveConfig(BaseConfig baseConfig)throws CustomerException;

    /**
     * 更新配置信息
     */
    void updateConfig(BaseConfig baseConfig)throws CustomerException;

    /**
     * 改变配置信息的状态
     */
    void changeConfigStatus(int id,int status)throws CustomerException;

    /**
     * 根据id删除
     */
    void deleteById(int id)throws CustomerException;

    /**
     * 分页询所有配置信息
     */
    PageInfo<BaseConfig> findAllWithPage(int pageNum, int pageSize)throws CustomerException;

    /**
     * 查找当前启用的配置信息
     */
    BaseConfig currentConfigYes()throws CustomerException;
}
